import service from "./index"

export function addAccount(data) {
    return service({
        url: "/tradingAccount/create",
        method: 'post',
        data
    })
}

export function getAccount() {
    return service({
        url: "/tradingAccount/list",
        method: 'post',

    })
}

export function getHomeInfo() {
    return service({
        url: "/authUser/homeInfo",
        method: 'post',

    })
}


// 修改个人信息
export function editUser(data) {
    return service({
        url: "/authUser/edit",
        method: 'post',
        data
    })
}

export function delAccount(data) {
    return service({
        url: "/tradingAccount/delete",
        method: 'post',
        params:{
            id:data
        }
    })
}